﻿<phone:PhoneApplicationPage
    x:Class="TM.QWeibo.Client.Tweet.Detail"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"  
    xmlns:tm="clr-namespace:TM.QWeibo.Client.UserControls"  
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
	xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
	xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:es="clr-namespace:Microsoft.Expression.Shapes;assembly=Microsoft.Expression.Drawing" 
	mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
	FontFamily="{StaticResource PhoneFontFamilyNormal}"
	FontSize="{StaticResource PhoneFontSizeNormal}"
	Foreground="{StaticResource PhoneForegroundBrush}"
	SupportedOrientations="Portrait" Orientation="Portrait"
	shell:SystemTray.IsVisible="False">
    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Style="{StaticResource PageLayoutGrid}">
		<Grid.RowDefinitions>
			<RowDefinition Height="80"/>
            <RowDefinition Height="3" />
            <RowDefinition Height="*"/>
		</Grid.RowDefinitions>
        <!--用户头像-->
        <tm:UserAvatar x:Name="UserInfo" Grid.Row="0" />
        <toolkit:PerformanceProgressBar Width="400"  Grid.Row="1" Visibility="Collapsed"  HorizontalAlignment="Center" x:Name="progressBar" Style="{StaticResource PerformanceProgressBarStyle}"/>
		<!--Pivot Control-->
        <controls:Pivot x:Name="detailPivot" Style="{StaticResource Pivot}" Grid.Row="2" SelectionChanged="Pivot_SelectionChanged">
			<!--Pivot item one-->
			<controls:PivotItem Header="微博详情">
                <tm:TweetDetail x:Name="tweetDetail" />
			</controls:PivotItem>

 			<!--Pivot item two-->
			<controls:PivotItem Header="转播与评论">
                <tm:TweetList x:Name="replyList" Timeline="Reply" ShowType="Reply"/>
			</controls:PivotItem>
		</controls:Pivot>
        
	</Grid>
	<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Opacity="0.9">
            <shell:ApplicationBar.MenuItems>
            	<shell:ApplicationBarMenuItem Text="返回首页" x:Name="mHome" Click="mHome_Click"/>
                <shell:ApplicationBarMenuItem Text="短信分享" x:Name="mSms" Click="mSms_Click"/>
				<shell:ApplicationBarMenuItem Text="邮件分享" x:Name="mEmail" Click="mEmail_Click"/>
            </shell:ApplicationBar.MenuItems>
			<shell:ApplicationBarIconButton x:Name="btnReply" IconUri="/Resource/Icons/comment.png" Text="评论" Click="btnReply_Click"/>
			<shell:ApplicationBarIconButton x:Name="btnForward" IconUri="/Resource/Icons/forword.png" Text="转发" Click="btnForward_Click"/>
			<shell:ApplicationBarIconButton x:Name="btnFavorite" IconUri="/Resource/Icons/favorite.png" Text="收藏" Click="btnFavorite_Click"/>
            <shell:ApplicationBarIconButton x:Name="btnComment" IconUri="/Resource/Icons/duihua.png" Text="对话" Click="btnComment_Click"/>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>